package com.itcam.enum_;

public enum Season_enum {
    /**
     *  1.enum枚举类要求对象（常量）必须放在最开始位置
     *  2.多个对象之间用，进行连接，最后一个对象后面用;结束
     */

    SPRING("春", "万物复苏"),
    SUMMER("夏", "烈日炎炎"),
    AUTUMN("秋", "硕果累累"),
    WINTER("冬", "寒风呼啸");
    // 属性
    private String seasonName; // 名字
    private String seasonDesc; // 描述

    Season_enum(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    @Override
    public String toString() {
        return "Season_enum{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }
}
